import request from '@/utils/request'
export function list(current,size) {
 return request({
  url: '/system/notification/list',
  method: 'get',
  params:{current,size}
 })
}
export function add(data) {
 return request({
  url: '/system/notification/add',
  method: 'post',
  data
 })
}
export function update(data) {
 return request({
  url: '/system/notification/updateById',
  method: 'post',
  data
 })
}
export function deleteNotification(data) {
 return request({
  url: '/system/notification/delete/id',
  method: 'post',
  data
 })
}
export function publish(data){
 return request({
  url: '/system/notification/publish',
  method: 'post',
  data
 })
}